﻿<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<STYLE> 
	.head{
		font-weight:bold;
		background-color: #f7f7f8;
	}
	
	.table {
		border:solid 1px gray;
	}
	
	.table TR TD{
		font-size:14px;
		text-align: left;
		border-left: #cdcdd5 1px solid;
		height:20px;
	}
	
	.table .gray TD	{
		background-color: #f7f7f8;
	}
	
	td{
		padding:2px;
	    border-bottom:#cdcdd5 1px dotted;
	}

</STYLE>

<#include "printLicenseInclude.ftl" />

<title>出入库明细打印</title>
</head>
<body bgcolor="#e0e0e0">
	<div id='page1' autoBreakTable='break-table' style="background:#FFFFFF;margin:10">
		<div align="center" style="font-size:22px;font-weight:bold;padding-top:5px">浙江万姿布业有限公司出入库明细打印</div>
		<h2 class="head" align='center'></h2>
		<div align='left' style="padding-left:5px;font-size:15px"><strong>客户名称：</strong>${purchaserName?if_exists} 
		&nbsp;&nbsp;&nbsp;&nbsp;<strong>出入库类型：${type?if_exists}</strong>
		</div>
		<table id="break-table" headerRows='1' class="table" cellSpacing="0" cellPadding="0" width="100%">
			<tr class="gray">
				<td class="head" width="25%">日期</td>
				<td class="head" width="25%">品名</td>
				<td class="head" width="25%">色号</td>
				<td class="head" width="25%">米数</td>
			</tr>

			<#list checkInOutList?if_exists as checkInOutItem>
			<tr class="<#if checkInOutItem_index % 2 == 0>gray<#else></#if>" height="10">
				<td nowrap="nowrap"  width="25%">${checkInOutItem.createTime?string("yyyy-MM-dd")}</td>
				<td nowrap="nowrap"  width="25%">${checkInOutItem.storage.product.name}</td>
				<td width="25%">${checkInOutItem.storage.product.colorCode}</td>
				<td width="25%" nowrap="nowrap" >${checkInOutItem.inputMeterNum}</td>
			</tr>
			</#list>
		</table>
	</div>
	
	<div id='myfooter'>
		<hr/>
        <p align="center" style="font-size:14px; margin-top:1px; padding-top:1px; padding-left:5px; padding-right:5px;">
        	<div style="text-align:right;font-size:14px; padding-right:20px;">此次共出入库布品${checkInOut.piNumSummary}匹，${checkInOut.meterNumSummary}米，打印日期：${today?string("yyyy-MM-dd")}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;第#p页，共#P页</div>
        </p>
  	</div>
	
	<script language="javascript">
		function doPrint(isPreview) {
			 var myDoc ={ 
			 	 footer:{height:80,html:myfooter},
			 	 settings:{topMargin:50,leftMargin:100,bottomMargin:50,rightMargin:100},
    			 documents:document,    // 打印页面(div)在本文档中
    			 pageNumberOn:'local',
    			 copyrights:'杰创软件拥有版权   www.jatools.com'   // 版权声明必须
    			 };
		
			if(isPreview){
				jatoolsPrinter.printPreview(myDoc); //预览
			}else{
				jatoolsPrinter.print(myDoc,true); // 打印弹出打印机的选择框  
			}
		}
		
		 window.onload = function() { doPrint(true); } //直接打印预览
		
	</script>
</body>
</html>